package com.zeus.service;

import com.zeus.mapper.GoodsMapper;
import com.zeus.mapper.GoodsSkuMapper;
import com.zeus.pojo.GoodsSku;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 冯扬龙
 * @date 2021/4/19 15:18
 */
@Service
public class GoodsSkuServiceImpl implements GoodsSkuService {

    @Autowired
    private GoodsSkuMapper goodsSkuMapper;
    //  商品不同尺码对应不同的颜色跟不同的样式，前端传入sku_propertiesd+goodsid,返回一个goodssku对象
    public GoodsSku getSkuGoods(String skuProperties, int goodsId) {
        return goodsSkuMapper.getSkuGoods(skuProperties,goodsId);
    }
}
